package com.chezai.client.bean;

import android.support.annotation.Nullable;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * 终端基础信息
 * Created by likunyang on 2017/8/24.
 */
@Entity
public class TerminalBaseInfo {
    @Id(autoincrement = true)
    private Long _ID;
    // 只有在成功后才返回以下内容
    /**
     * 省域ID
     **/
    private int provinceId;
    /**
     * 市县域ID
     **/
    private int cityId;
    /**
     * 终端SIM卡号
     **/
    private String sim;
    /**
     * 终端类型
     * 1:车载计程计时终端    2:课堂教学计时终端    3:模拟训练计时终端
     */
    private int type;
    /**
     * 支持登陆方式
     * <p>
     * 每一位表示一种登录方式，0表示不支持，1表示支持(0100000:表示仅支持二维码登录)
     * 登录方式及位置
     * 0:RFID登录
     * 1:二维码登录
     * 2:微信二维码登录
     * 3:人脸识别登录
     * 4:验证码登录
     */
    private int loginType;
    /**
     * 驾校名称
     **/
    private String schoolName;
    /**
     * 车牌颜色
     **/
    private int signColor;
    /**
     * 车辆标识
     **/
    private String identification;
    /**
     * 平台编号
     */
    private String platform;
    /**
     * 培训机构编号
     */
    private String traningOrg;
    /**
     * 计时终端编号
     */
    private String device;

    private String certPassword;
    /**
     * 终端证书
     */
    private String cert;
    /**
     * 终端电话
     */
    private String phone;
    /**
     * 设备归属 0 至诚，1 1580
     */
    @Nullable
    private int deviceBelong;
    /**
     * 驾校统一编号
     */
    private String inscode;

    @Generated(hash = 1302398200)
    public TerminalBaseInfo(Long _ID, int provinceId, int cityId, String sim,
            int type, int loginType, String schoolName, int signColor,
            String identification, String platform, String traningOrg,
            String device, String certPassword, String cert, String phone,
            int deviceBelong, String inscode) {
        this._ID = _ID;
        this.provinceId = provinceId;
        this.cityId = cityId;
        this.sim = sim;
        this.type = type;
        this.loginType = loginType;
        this.schoolName = schoolName;
        this.signColor = signColor;
        this.identification = identification;
        this.platform = platform;
        this.traningOrg = traningOrg;
        this.device = device;
        this.certPassword = certPassword;
        this.cert = cert;
        this.phone = phone;
        this.deviceBelong = deviceBelong;
        this.inscode = inscode;
    }
    @Generated(hash = 665941245)
    public TerminalBaseInfo() {
    }
    public int getProvinceId() {
        return this.provinceId;
    }
    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }
    public int getCityId() {
        return this.cityId;
    }
    public void setCityId(int cityId) {
        this.cityId = cityId;
    }
    public String getSim() {
        return this.sim;
    }
    public void setSim(String sim) {
        this.sim = sim;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public int getLoginType() {
        return this.loginType;
    }
    public void setLoginType(int loginType) {
        this.loginType = loginType;
    }
    public String getSchoolName() {
        return this.schoolName;
    }
    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }
    public int getSignColor() {
        return this.signColor;
    }
    public void setSignColor(int signColor) {
        this.signColor = signColor;
    }
    public String getIdentification() {
        return this.identification;
    }
    public void setIdentification(String identification) {
        this.identification = identification;
    }
    public String getPlatform() {
        return this.platform;
    }
    public void setPlatform(String platform) {
        this.platform = platform;
    }
    public String getTraningOrg() {
        return this.traningOrg;
    }
    public void setTraningOrg(String traningOrg) {
        this.traningOrg = traningOrg;
    }
    public String getDevice() {
        return this.device;
    }
    public void setDevice(String device) {
        this.device = device;
    }
    public String getCertPassword() {
        return this.certPassword;
    }
    public void setCertPassword(String certPassword) {
        this.certPassword = certPassword;
    }
    public String getCert() {
        return this.cert;
    }
    public void setCert(String cert) {
        this.cert = cert;
    }
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Long get_ID() {
        return this._ID;
    }
    public void set_ID(Long _ID) {
        this._ID = _ID;
    }
    public int getDeviceBelong() {
        return this.deviceBelong;
    }
    public void setDeviceBelong(int deviceBelong) {
        this.deviceBelong = deviceBelong;
    }
    public String getInscode() {
        return this.inscode;
    }
    public void setInscode(String inscode) {
        this.inscode = inscode;
    }
}
